<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;


/**
 * Game模型
 */
class Template extends ModelBase
{

    protected $insert = ['create_time'];




    /**
     * 时间自动完成
     */
    public function setCreateTimeAttr()
    {

        return TIME_NOW;
    }

    /**
     * 获取状态信息
     */
    public function getTypeTextAttr(){
        $arr=['','会员数据','赌王数据','商铺数据','链上数量数据'];
        return lang($arr[$this->data['type']]);
    }


    /**
     * 获取状态信息
     */
    public function getContentAttr($value){

        return json_decode($value,true);
    }



}
